# from .views import RoleView, QueryRoleView, ChangeRoleView, DeleteRoleView,UserLogin
from django.urls import path

from .views import *

urlpatterns = [
    path('roles/', RoleView.as_view(), name='role'),
    path('query/<int:p_id>/<int:p_num>/', QueryRoleView.as_view(), name='query'),
    path('change/<int:id>', ChangeRoleView.as_view(), name='change'),
    path('delete/<int:id>/', DeleteRoleView.as_view()),
    path('permission/', PermissionView.as_view()),
    path('get_all/', UserView.as_view()),
    path('pagenation/', GetAddPermission.as_view()),
    path('m/<id>/', MenusView.as_view()),
    path('users/', UserLogin.as_view()),
    path('getall_roles/', GetAllRolesView.as_view()),
    path('edit_oneself/', EditOneself.as_view()),
    path('edit_image/', ChangeHeadImage.as_view())
]
